<template>
  <div>
    <button @click="showFn">显示弹框</button>
  </div>
</template>

<script>
  import showMag from "./showMsg"
  export default {
      data(){
         return {

         }
      },
      methods:{
        showFn(){
          showMag("要显示的内容？？？？？", ()=>{
            console.log("点击了确定按钮");
          })
        }
      }
  }
</script>
<style lang='less' scoped>

</style>